﻿<%@ Page Title="Asah Consulting - Password Recovery" Language="C#" MasterPageFile="~/Main.master"
    AutoEventWireup="true" CodeFile="RecoverPassword.aspx.cs" Inherits="RecoverPassword" %>

<asp:Content ID="cntMain" ContentPlaceHolderID="cphZone1" runat="Server">
    <asp:ValidationSummary runat="server" ID="vsumRecoverPassword" ValidationGroup="PasswordRecovery1"
        HeaderText="&lt;b&gt;&amp;nbsp;There were some problems with your entries:&lt;/b&gt;" />
    <asp:PasswordRecovery ID="precForgotPassword" runat="server" Width="100%">
        <QuestionTemplate>
             <asp:Panel runat="server" ID="pnlIdentityConfirm" DefaultButton="SubmitButton">
             <p class="sectionTitle">Identity Confirmation</p>
             Answer the following question to receive your password.
            <table style="width: 440px">
                <tr>
                    <td class="label">
                        User name:
                    </td>
                    <td>
                        <asp:Literal ID="UserName" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        Question:
                    </td>
                    <td>
                        <asp:Literal ID="Question" runat="server"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td class="label">
                        <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">Answer:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="Answer" runat="server" Width="150px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" ControlToValidate="Answer"
                            ErrorMessage="Answer is required." ToolTip="Answer is required." ValidationGroup="PasswordRecovery1">&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="color: Red;">
                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" ValidationGroup="PasswordRecovery1" />
                    </td>
                </tr>
            </table>
            </asp:Panel>
        </QuestionTemplate>
        <UserNameTemplate>
            <asp:Panel runat="server" ID="pnlForgotPassword" DefaultButton="SubmitButton">
            <p class="sectionTitle">Forgot Your Password?</p>
             Enter your User Name to receive your password.
            <table style="width: 440px">
                <tr>
                    <td class="label">
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User name:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="UserName" runat="server" Width="175px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                            ErrorMessage="User name is required." ToolTip="User name is required." 
                            ValidationGroup="PasswordRecovery1">&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" style="color: Red;">
                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="SubmitButton" runat="server" CommandName="Submit" Text="Submit" ValidationGroup="PasswordRecovery1" />
                    </td>
                </tr>
            </table>
            </asp:Panel>
        </UserNameTemplate>
        <SuccessTemplate>
            <p class="sectionTitle">Password Recovered</p>
            <table style="width: 440px">
                <tr>
                    <td>
                        Your password has been sent to you.
                    </td>
                </tr>
            </table>
        </SuccessTemplate>
    </asp:PasswordRecovery>
</asp:Content>